<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>OutputDebug</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>OutputDebug</h1>

<p>Sends a string to the debugger (if any) for display.</p>

<pre class="Syntax">OutputDebug, Text</pre>
<h3>Parameters</h3>
<dl>

  <dt>Text</dt>
  <dd><p>The text to send to the debugger for display. This text may include linefeed characters (`n) to start new lines. In addition, a single long line can be broken up into several shorter ones by means of a <a href="../Scripts.htm#continuation">continuation section</a>.</p></dd>

</dl>

<h3>Remarks</h3>
<p>If the script's process has no debugger, the system debugger displays the string. If the system debugger is not active, this command has no effect.</p>
<p>One example of a debugger is DebugView, which is free and available at <a href="http://www.sysinternals.com">www.sysinternals.com</a>.</p>
<p>See also: <a href="../Scripts.htm#debug">other debugging methods</a></p>
<h3>Related</h3>
<p><a href="FileAppend.htm">FileAppend</a>, <a href="../Scripts.htm#continuation">continuation sections</a></p>
<h3>Example</h3>
<pre class="NoIndent">OutputDebug, %A_Now%: Because the window &quot;%TargetWindowTitle%&quot; did not exist, the process was aborted.</pre>

</body>
</html>
